aux_source_directory(. srcs)

include_directories(${PROJECT_SOURCE_DIR}/include)

set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)

add_library(demo SHARED ${srcs})

add_library(demo_static STATIC ${srcs})

set_target_properties(demo_static PROPERTIES OUTPUT_NAME "demo")

set_target_properties(demo PROPERTIES CLEAN_DIRECT_OUTPUT 1)
set_target_properties(demo_static PROPERTIES CLEAN_DIRECT_OUTPUT 1)

# VERSION 动态库版本
# SOVERSION API版本
set_target_properties(demo PROPERTIES VERSION 1.0 SOVERSION 1)